package com.chensi.socket;
/**
 * 聊天消息
 * @author chensi
 * @version 2016-8-22 下午10:36:22
 */
public class Msg {

	/**消息来源用户名*/
	private String username;
	/**消息来源用户头像*/
	private String avatar;
	/**聊天窗口来源ID（如果是私聊，则是用户id，如果是群聊，则是群组id）*/
	private String id;
	/**聊天窗口来源类型，从发送消息传递的to里面获取*/
	private String type;
	/**消息内容*/
	private String content;
	/**是否我发送的消息，如果为true，则会显示在右方*/
	private boolean mine;
	/**服务端动态时间戳*/
	private Long timestamp;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public boolean isMine() {
		return mine;
	}

	public void setMine(boolean mine) {
		this.mine = mine;
	}

	public Long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}
	
	
}
